/**
 * @Author yinyunqi
 * @date 2018年1月22日
 * @Content 
 */
package com.yongqi.pub;

import java.util.HashMap;
import java.util.Map;

import org.apache.shiro.SecurityUtils;

import com.yongqi.model.Family;

public class PrincipalFormat {
    public static Map<String, String> familyAccount() {
	String familyAccount = ((Family) SecurityUtils.getSubject().getPrincipal()).getFamilyaccount();
	Map<String, String> map = new HashMap<String, String>();
	map.put("familyAccount", familyAccount);
	return map;
    }
    public static String currentFA() {
	String familyAccount = ((Family) SecurityUtils.getSubject().getPrincipal()).getFamilyaccount();
	return familyAccount;
    }
}

